<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>数据库</title>
    <!-- 引入Tailwind CSS -->
    <script src="https://cdn.tailwindcss.com"></script>
    <!-- 引入自定义CSS -->
    <link rel="stylesheet" href="../css/database.css">
    <link rel="stylesheet" href="../css/style.css">
    <script src="../js/database.js" defer></script>
    <link rel="stylesheet" href="https://rsms.me/inter/inter.css"/>
</head>
<body>
    <div class="violet-glow"></div>
    <header class="blurry-navbar">
        <div class="navbar-content">
            <h1 class="text-animation text-3xl font-bold">藏药植物药知识平台</h1>
            <nav>
                <ul>
                    <li><a href="recognize.html">图片识别</a></li>
                    <li><a href="graph.html">知识图谱</a></li>
                    <li><a href="database.html">数据库</a></li>
                    <li><a href="board.html">数据显示</a></li>
                </ul>
            </nav>
        </div>
    </header>

    <div class="container">
        <!-- 添加新植物的表单 -->
        <form id="add-plant-form" class="flex flex-wrap gap-4 justify-center items-end">
            <span class="mb-4 flex-1">
                <label for="name">名称:</label>
                <input type="text" id="name" class="w-full">
            </span>
            <span class="mb-4 flex-1">
                <label for="category">类别:</label>
                <input type="text" id="category" class="w-full">
            </span>
            <span class="mb-4 flex-1">
                <label for="efficacyScore">功效评分:</label>
                <input type="number" id="efficacyScore" class="w-full">
            </span>
            <span class="mb-4 flex-1">
                <label for="distribution">分布:</label>
                <input type="text" id="distribution" class="w-full">
            </span>
            <span class="mb-4 flex-1">
                <label for="description">描述:</label>
                <textarea id="description" class="w-full"></textarea>
            </span>
            <span class="mb-4 flex-1">
                <label for="usage">用途:</label>
                <textarea id="usage" class="w-full"></textarea>
            </span>
            <div class="flex justify-center w-full gap-2">
                <button type="submit" class="button bg-green-500">提交</button>
                <button type="button" class="button bg-red-500">取消</button>
            </div>
        </form>
    </div>

        <div id="plant-cards" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 mt-8">
            <!-- Cards will be dynamically inserted here -->
        </div>
</body>
</html>